/*     */ package com.zimbra.cs.ldap.unboundid;
/*     */ 
/*     */ import com.zimbra.common.service.ServiceException;
/*     */ import com.zimbra.cs.ldap.LdapClient;
/*     */ import com.zimbra.cs.ldap.LdapException;
/*     */ import com.zimbra.cs.ldap.LdapServerConfig.ExternalLdapConfig;
/*     */ import com.zimbra.cs.ldap.LdapServerType;
/*     */ import com.zimbra.cs.ldap.LdapUsage;
/*     */ import com.zimbra.cs.ldap.ZLdapContext;
/*     */ import com.zimbra.cs.ldap.ZLdapFilterFactory;
/*     */ import com.zimbra.cs.ldap.ZMutableEntry;
/*     */ import com.zimbra.cs.ldap.ZSearchControls;
/*     */ import com.zimbra.cs.ldap.ZSearchScope;
/*     */ import com.zimbra.cs.ldap.ZSearchScope.ZSearchScopeFactory;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class UBIDLdapClient
/*     */   extends LdapClient
/*     */ {
/*     */   protected void init(boolean alwaysUseMaster)
/*     */     throws LdapException
/*     */   {
/*  38 */     super.init(alwaysUseMaster);
/*  39 */     UBIDLdapContext.init(alwaysUseMaster);
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */   protected void terminate() {}
/*     */   
/*     */ 
/*     */ 
/*     */   protected void alwaysUseMaster() {}
/*     */   
/*     */ 
/*     */ 
/*     */   protected ZSearchScope.ZSearchScopeFactory getSearchScopeFactoryInstance()
/*     */   {
/*  54 */     return new UBIDSearchScope.UBIDSearchScopeFactory();
/*     */   }
/*     */   
/*     */   protected ZLdapFilterFactory getLdapFilterFactoryInstance()
/*     */     throws LdapException
/*     */   {
/*  60 */     UBIDLdapFilterFactory.initialize();
/*  61 */     return new UBIDLdapFilterFactory();
/*     */   }
/*     */   
/*     */   /* Error */
/*     */   protected void waitForLdapServerImpl()
/*     */   {
/*     */     // Byte code:
/*     */     //   0: aconst_null
/*     */     //   1: astore_1
/*     */     //   2: new 11	com/zimbra/cs/ldap/unboundid/UBIDLdapContext
/*     */     //   5: dup
/*     */     //   6: getstatic 12	com/zimbra/cs/ldap/LdapServerType:REPLICA	Lcom/zimbra/cs/ldap/LdapServerType;
/*     */     //   9: getstatic 13	com/zimbra/cs/ldap/LdapUsage:PING	Lcom/zimbra/cs/ldap/LdapUsage;
/*     */     //   12: invokespecial 14	com/zimbra/cs/ldap/unboundid/UBIDLdapContext:<init>	(Lcom/zimbra/cs/ldap/LdapServerType;Lcom/zimbra/cs/ldap/LdapUsage;)V
/*     */     //   15: astore_1
/*     */     //   16: aload_1
/*     */     //   17: ifnull +86 -> 103
/*     */     //   20: aload_1
/*     */     //   21: iconst_0
/*     */     //   22: invokevirtual 15	com/zimbra/cs/ldap/unboundid/UBIDLdapContext:closeContext	(Z)V
/*     */     //   25: goto +78 -> 103
/*     */     //   28: astore_2
/*     */     //   29: getstatic 17	java/lang/System:err	Ljava/io/PrintStream;
/*     */     //   32: new 18	java/lang/StringBuilder
/*     */     //   35: dup
/*     */     //   36: invokespecial 19	java/lang/StringBuilder:<init>	()V
/*     */     //   39: new 20	java/util/Date
/*     */     //   42: dup
/*     */     //   43: invokespecial 21	java/util/Date:<init>	()V
/*     */     //   46: invokevirtual 22	java/lang/StringBuilder:append	(Ljava/lang/Object;)Ljava/lang/StringBuilder;
/*     */     //   49: ldc 23
/*     */     //   51: invokevirtual 24	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
/*     */     //   54: invokevirtual 25	java/lang/StringBuilder:toString	()Ljava/lang/String;
/*     */     //   57: invokevirtual 26	java/io/PrintStream:println	(Ljava/lang/String;)V
/*     */     //   60: aload_2
/*     */     //   61: invokevirtual 27	com/zimbra/common/service/ServiceException:printStackTrace	()V
/*     */     //   64: ldc2_w 28
/*     */     //   67: invokestatic 30	java/lang/Thread:sleep	(J)V
/*     */     //   70: goto +4 -> 74
/*     */     //   73: astore_3
/*     */     //   74: aload_1
/*     */     //   75: ifnull +25 -> 100
/*     */     //   78: aload_1
/*     */     //   79: iconst_0
/*     */     //   80: invokevirtual 15	com/zimbra/cs/ldap/unboundid/UBIDLdapContext:closeContext	(Z)V
/*     */     //   83: goto +17 -> 100
/*     */     //   86: astore 4
/*     */     //   88: aload_1
/*     */     //   89: ifnull +8 -> 97
/*     */     //   92: aload_1
/*     */     //   93: iconst_0
/*     */     //   94: invokevirtual 15	com/zimbra/cs/ldap/unboundid/UBIDLdapContext:closeContext	(Z)V
/*     */     //   97: aload 4
/*     */     //   99: athrow
/*     */     //   100: goto -100 -> 0
/*     */     //   103: return
/*     */     // Line number table:
/*     */     //   Java source line #67	-> byte code offset #0
/*     */     //   Java source line #69	-> byte code offset #2
/*     */     //   Java source line #80	-> byte code offset #16
/*     */     //   Java source line #81	-> byte code offset #20
/*     */     //   Java source line #71	-> byte code offset #28
/*     */     //   Java source line #73	-> byte code offset #29
/*     */     //   Java source line #74	-> byte code offset #60
/*     */     //   Java source line #76	-> byte code offset #64
/*     */     //   Java source line #78	-> byte code offset #70
/*     */     //   Java source line #77	-> byte code offset #73
/*     */     //   Java source line #80	-> byte code offset #74
/*     */     //   Java source line #81	-> byte code offset #78
/*     */     //   Java source line #80	-> byte code offset #86
/*     */     //   Java source line #81	-> byte code offset #92
/*     */     //   Java source line #84	-> byte code offset #100
/*     */     //   Java source line #85	-> byte code offset #103
/*     */     // Local variable table:
/*     */     //   start	length	slot	name	signature
/*     */     //   0	104	0	this	UBIDLdapClient
/*     */     //   1	92	1	zlc	UBIDLdapContext
/*     */     //   28	33	2	e	ServiceException
/*     */     //   73	2	3	ie	InterruptedException
/*     */     //   86	12	4	localObject	Object
/*     */     // Exception table:
/*     */     //   from	to	target	type
/*     */     //   2	16	28	com/zimbra/common/service/ServiceException
/*     */     //   64	70	73	java/lang/InterruptedException
/*     */     //   2	16	86	finally
/*     */     //   28	74	86	finally
/*     */     //   86	88	86	finally
/*     */   }
/*     */   
/*     */   protected ZLdapContext getContextImpl(LdapServerType serverType, LdapUsage usage)
/*     */     throws ServiceException
/*     */   {
/*  90 */     return new UBIDLdapContext(serverType, usage);
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   protected ZLdapContext getContextImpl(LdapServerType serverType, boolean useConnPool, LdapUsage usage)
/*     */     throws ServiceException
/*     */   {
/* 100 */     return getContextImpl(serverType, usage);
/*     */   }
/*     */   
/*     */   protected ZLdapContext getExternalContextImpl(LdapServerConfig.ExternalLdapConfig config, LdapUsage usage)
/*     */     throws ServiceException
/*     */   {
/* 106 */     return new UBIDLdapContext(config, usage);
/*     */   }
/*     */   
/*     */   protected ZMutableEntry createMutableEntryImpl()
/*     */   {
/* 111 */     return new UBIDMutableEntry();
/*     */   }
/*     */   
/*     */ 
/*     */   protected ZSearchControls createSearchControlsImpl(ZSearchScope searchScope, int sizeLimit, String[] returnAttrs)
/*     */   {
/* 117 */     return new UBIDSearchControls(searchScope, sizeLimit, returnAttrs);
/*     */   }
/*     */   
/*     */ 
/*     */   protected void externalLdapAuthenticateImpl(String[] urls, boolean wantStartTLS, String bindDN, String password, String note)
/*     */     throws ServiceException
/*     */   {
/* 124 */     UBIDLdapContext.externalLdapAuthenticate(urls, wantStartTLS, bindDN, password, note);
/*     */   }
/*     */   
/*     */ 
/*     */   protected void zimbraLdapAuthenticateImpl(String bindDN, String password)
/*     */     throws ServiceException
/*     */   {
/* 131 */     UBIDLdapContext.zimbraLdapAuthenticate(bindDN, password);
/*     */   }
/*     */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/ldap/unboundid/UBIDLdapClient.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */